<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
	</head>
	<body>
		<div id="web">
			<!--头部-->
			<header class="clearfix">
				<!--logo-->
				<div class="head_logo fl">
					<a href="index.html"><img src="img/logo.png"/></a>
				</div>
				<!--下拉框-->
					<div class="selectBar fr">
						<select name="">
							<option value="">广州</option>
							<option value="">深圳</option>
						</select>
					</div>
				
					<!--搜索框-->
					<div class="search">
						<input type="text" name="" id="" value="" placeholder="请输入商品名称"/>
						<img src="img/fangda.png"/>
					</div>
					
			</header>
			<!--滚动部分-->
			<div class="session">
				<div class="lunbo">
					<img src="img/food.jpg"/>
				</div>
				<div class="discount">
					<div class="head clearfix">
						<i class="iconfont icon-xing"></i>
						<p>优惠团购</p>
						<a href="#" class="fr">更多</a>
						<!--<i class="iconfont icon-"></i>-->
					</div>
					<div class="content clearfix">
						<div class="projectBox fl">
							<a href="#"><img src="img/maiba.jpg"/></a>
						</div>
						<div class="projectBox fr">
							<a href="#"><img src="img/jiudian.jpg"/></a>
						</div>
						<div class="projectBox fl">
							<a href="#"><img src="img/lvyou.jpg"/></a>
						</div>
						<div class="projectBox fr">
							<a href="#"><img src="img/waimai.jpg"/></a>
						</div>
					</div>
				</div>
				
				<div class="like">
					<div class="head clearfix">
						<i class="iconfont icon-xin"></i>
						<p>猜你喜欢</p>
						<a href="#" class="fr">更多</a>
						<i class="iconfont icon-"></i>
					</div>
					<div class="content clearfix">
						<div class="shop clearfix">
							<div class="imgBox fl">
								<a href="#"><img src="img/sushui.jpg"/></a>
							</div>
							<div class="messageBox fr">
								<p>万岁寿司（正佳店）<span><100m</span></p>
								<p>[100店通用]<span>双人套餐</span></p>
								<p>￥88.00<span>已售1000</span></p>
							</div>
						</div>
						<div class="shop clearfix">
							<div class="imgBox fl">
								<a href="#"><img src="img/duck.jpg"/></a>
							</div>
							<div class="messageBox fr">
								<p>周黑鸭（正佳店）<span><100m</span></p>
								<p>[100店通用]<span>双人套餐</span></p>
								<p>￥88.00<span>已售1000</span></p>
							</div>
						</div>
						<div class="shop clearfix">
							<div class="imgBox fl">
								<a href="#"><img src="img/sushui.jpg"/></a>
							</div>
							<div class="messageBox fr">
								<p>万岁寿司（正佳店）<span><100m</span></p>
								<p>[100店通用]<span>双人套餐</span></p>
								<p>￥88.00<span>已售1000</span></p>
							</div>
						</div>
						<div class="shop clearfix">
							<div class="imgBox fl">
								<a href="#"><img src="img/duck.jpg"/></a>
							</div>
							<div class="messageBox fr">
								<p>周黑鸭（正佳店）<span><100m</span></p>
								<p>[100店通用]<span>双人套餐</span></p>
								<p>￥88.00<span>已售1000</span></p>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--底部-->
			<footer>
				<ul>
					<li class="fl">
						<a href="index.html">
							<i class="iconfont icon-weibiaoti1 footerActivity"></i>
							<p>首页</p>
						</a>
					</li>
					<li class="fl">
						<a href="fenlei.html">
						<i class="iconfont icon-leimupinleifenleileibie2"></i>
						<p>分类</p>
						</a>
					</li>
					<li class="fl">
						<a href="faxian.html">
							<i class="iconfont icon-faxian"></i>
							<p>发现</p>
						</a>
					</li>
					<li class="fl">
						<a href="user.html">
							<i class="iconfont icon-weibiaoti-_huabanfuben"></i>
							<p>我的</p>
						</a>
					</li>
				</ul>
			</footer>
		</div>
		
		<!--自动计算根字体大小的脚本-->
		<script>
    
        
			//安卓的输入法虚拟键盘会影响Body的高度，所以在加载时，将body的原本高度给固定住
			document.body.style.height = window.innerHeight + "px";
			
	        /*动态改变根元素字体大小*/
	        function recalc() {
	            var clientWidth = document.documentElement.clientWidth;
	            if(!clientWidth) return;
	            document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
	                                        // 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
	        }
	
	        function initRecalc() {
	            recalc();
	            var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
	            if(!document.addEventListener) return;
	            window.addEventListener(resizeEvt, recalc, false);
	            document.addEventListener('DOMContentLoaded', recalc, false);
	        }
	        initRecalc();
	    
	    
	    
	    </script>
	</body>
</html>
